import request from '@/utils/request'
import { requestModel } from '@/types/service'

// 获取用户信息
export const getUserInfo: requestModel = () => request({
    url: '/info',
    method: 'get',
})

// 登录
export const login: requestModel = (data) => request({
    url: '/user/login',
    method: 'post',
    data
})

// 退出登录
export const logout: requestModel = () => request({
    url: '/quit',
    method: 'post'
})